<?php


namespace App\Models\Traits;


trait Observe
{
    public function initializeObserve()
    {
        $observer = str_ireplace('Model', 'Observer',static::class);
        if(class_exists($observer)){
            $this->registerObserver($observer);
        }
    }
}
